<style>
.jylabel-switch {padding:0.3rem 0.5rem;}
.jylabel-switch.active{
	border-radius:1.5rem;
	background-color:#00c568;
	color:#fff;
}
</style>
<div class='fui-page-group' ng-if="pagedata.op == 'main'">
<div class='fui-page  fui-page-current'>
    <div class="fui-header">
		<div class="fui-header-left" ng-click="goback()">
            <a class="back"></a>
        </div>
		<div class="title">月结中心</div>
		<div class="fui-header-right"></div>
	</div>
	<div class='fui-content'>
		<div style="background: {{main.syscolor||'#05c175'}};padding:1rem 0.5rem;margin-top:0;padding-bottom:1.6rem;">
			<div class="fui-cellone" style="padding:0">
				<div class="fui-cellone-label" style="width:auto;">
					<img style="border-radius: 0.2rem;width:2.2rem;height:2.2rem" ng-src="{{tomedia(pagedata.worker.avatar) || '../core/resource/images/nopic.jpg'}}" />
				</div>
				<div class="fui-cellone-text" style="font-size:0.7rem;color:#fff;padding-left:0.5rem">
					<div style="padding-bottom:0.2rem">
						<span class="bold">{{pagedata.worker.nickname || '匿名用户'}} (ID:{{pagedata.worker.mid}})</span>
						<span ng-if="pagedata.worker.admintitle" class="bold red">({{pagedata.worker.admintitle}})</span>
					</div>
					<div style="font-size:0.6rem;padding:0.3rem 0">
						有效期:{{pagedata.worker.yuejie_endtime}} 
						<span style="color:#FCC600;" ng-click="access_json('/setyajin/')">续费>></span>
					</div>
				</div>
				<div class="fui-cellone-remark noremark" style="font-size:0.7rem;color:#fff;" href="javascript:;" ng-click="access_json('core/member.set/')">
					 <a style="border-radius: 1rem;padding:0.2rem 0.3rem;font-size:0.6rem; background-color: rgb(255, 255, 255, 0.3);;width:auto;color:#fff"><i class="icon icon-qiehuan" style="font-size:0.6rem"></i> 设置</a>
				</div>
			</div>	
			<div class="fui-icon-group noborder col-3" style="padding-top:0.5rem">
					<div class="fui-icon-col-sm external" style="margin:0">
													<div  href="javascript:;" ng-click="access_json('jy_yuejie/order.list/')">
														<div class="subtitle" style="font-size:0.7rem;color:#fff">今日消费额</div>
														<div class="text bold" style="color:#fff;line-height:1.6rem;font-size:1rem">{{pagedata.worker.today_money || '0.00'}}</div>
													</div>
					</div>
					<div class="fui-icon-col-sm external" style="margin:0">
													<div  href="javascript:;" ng-click="access_json('jy_yuejie/order.list/')">
														<div class="subtitle" style="font-size:0.7rem;color:#fff">本月消费</div>
														<div class="text bold" style="color:#fff;line-height:1.6rem;font-size:1rem">{{pagedata.worker.month_money || '0.00'}}</div>
														
													</div>
					</div>
					<div class="fui-icon-col-sm external" style="margin:0">
													<div href="javascript:;" ng-click="access_json('jy_yuejie/order.list/')">
														<div class="subtitle" style="font-size:0.7rem;color:#fff">总消费</div>
														<div class="text bold" style="color:#fff;line-height:1.6rem;font-size:1rem">{{pagedata.worker.all_money || 0}}</div>
													</div>
					</div>
			</div>			
		</div>
		<div style="padding:0.5rem;margin-top:-2.5rem">
			<div ng-if="pagedata.jielog.orderprice>0" class="fui-cell-group fui-cell-click mod-group radius">
					<a class="fui-cell">
								<div class="fui-cell-icon"><i class="icon icon-caifua"></i></div>
								<div class="fui-cell-text">
									<div>上月账单:￥ <span class="red">{{pagedata.jielog.orderprice || '0.00'}}</span> （<span class="red">{{pagedata.jielog.status==1?'已支付':'待支付'}}</span>）</div>
									<div class="subtitle" style="font-size:0.65rem">{{pagedata.jielog.status==1?'上月账单已结清，感谢支持！':'上月账单待支付，请及时处理！'}}</div>
								</div>
								<div ng-if="pagedata.jielog.status!=1 && pagedata.jielog.orderprice>0" ng-click="access_json('jy_yuejie/payjie/')" class="fui-cell-remark noremark">
									<span class="jylabel jylabel-success" style="padding:0.3rem 0.6rem;border-radius:1rem;font-weight:400">结算</span>
								</div>
					</a>
			</div>
			<div ng-if="!pagedata.jielog.id || pagedata.jielog.orderprice<=0" class="fui-cell-group fui-cell-click mod-group radius">
					<a class="fui-cell">
								<div class="fui-cell-icon"><i class="icon icon-caifua"></i></div>
								<div class="fui-cell-text">
									<div>上月账单:￥ <span class="red">{{pagedata.jielog.orderprice || '0.00'}}</span> （<span class="red">无需处理</span>）</div>
									<div class="subtitle" style="font-size:0.65rem">上月账无需处理！</div>
								</div>
					</a>
			</div>
			<div class="fui-cell-group fui-cell-click mod-group radius">
					<a class="fui-cell">
								<div class="fui-cell-icon"><i class="icon icon-caifua"></i></div>
								<div class="fui-cell-text">
								   我的购物月结订单
								</div>
								<div href="javascript:;" ng-click="access_json('jy_yuejie/order.list/')" class="fui-cell-remark">
									查看
								</div>
					</a>
					<a ng-if="pagedata.worker.yuejie_type==1" class="fui-cell">
								<div class="fui-cell-icon"><i class="icon icon-caifua"></i></div>
								<div class="fui-cell-text">
								   员工购物月结订单
								</div>
								<div href="javascript:;" ng-click="access_json('jy_yuejie/order.list//isworker=1')" class="fui-cell-remark">
									查看
								</div>
					</a>
					<a class="fui-cell">
								<div class="fui-cell-icon"><i class="icon icon-caifua"></i></div>
								<div class="fui-cell-text">
								   我的其他月结订单
								</div>
								<div href="javascript:;" ng-click="access_json('jy_yuejie/order/')" class="fui-cell-remark">
									查看
								</div>
					</a>
					<a ng-if="pagedata.worker.yuejie_type==1" class="fui-cell">
								<div class="fui-cell-icon"><i class="icon icon-caifua"></i></div>
								<div class="fui-cell-text">
								   员工其他月结订单
								</div>
								<div href="javascript:;" ng-click="access_json('jy_yuejie/order//isworker=1')" class="fui-cell-remark">
									查看
								</div>
					</a>
					<a ng-if="pagedata.worker.yuejie_type==1" class="fui-cell">
								<div class="fui-cell-icon"><i class="icon icon-wo1"></i></div>
								<div class="fui-cell-text">
								   我的员工
								</div>
								<div href="javascript:;" ng-click="access_json('jy_yuejie/worker/')" class="fui-cell-remark">
									查看
								</div>
					</a>
					<a class="fui-cell">
								<div class="fui-cell-icon"><i class="icon icon-erweima"></i></div>
								<div class="fui-cell-text">
								 推广二维码
								</div>
								<div href="javascript:;" ng-click="pagedata.showyewu=true;pagedata.iswsao=0;pagedata.show_verify();" class="fui-cell-remark">
									查看
								</div>
					</a>
					<a ng-if="pagedata.worker.yuejie_type==1" class="fui-cell">
								<div class="fui-cell-icon"><i class="icon icon-erweima"></i></div>
								<div class="fui-cell-text">
								 绑员工二维码
								</div>
								<div href="javascript:;" ng-click="pagedata.showyewu=true;pagedata.iswsao=1;pagedata.show_verify(pagedata.worker.wurl);" class="fui-cell-remark">
									查看
								</div>
					</a>
			</div>
		</div>
	</div>
</div>
</div>
<div ng-include="sys_html('_footer')"></div>
<div ng-if="pagedata.showyewu" class="popup">
	<div class="popup-body">
		<div class="popup-center" style="background:#fc6d60">
			<style>
				input{ caret-color: #fff}
				.fui-cell-group .fui-cell .fui-cell-info  ::-webkit-input-placeholder{
					color: #fff
				}
				.fui-cell-group .fui-cell .fui-cell-info {
					font-size: 0.85rem;
					color: #fff;
				}
			</style>
			<i class="closed icon icon-cuowu" ng-click="pagedata.showyewu=false"></i>
			 <div class='fui-cell-group fui-cell-group-o' style="margin:0.5rem 1rem;padding-top:0.5rem;background:#fc6d60">
				<div class='fui-cell-title c' style="color:#fff">您正在进行“{{pagedata.iswsao==1?'绑员工':'分享'}}”操作
				</div>
				<div class='fui-cell' style="padding-bottom:0">
					<div class="fui-cell-text c">
						<div class="img_box" id="show_verify_ewm">
						</div>
					</div>
				</div>
				<div class='fui-cell' style="margin-top:0;padding-top:0">
					<div class="fui-cell-text">
					<div class="error c">
						<p style="padding: 0 1.3rem">温馨提示：提供本二维码给{{pagedata.iswsao==1?'准员工':'准客户'}}扫码！</p>
					</div>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>
<script type="text/javascript">
scope.pagedata.show_verify=function(url){
	var url=url?url:scope.pagedata.worker.url;
	scope.tool.qr(url,'show_verify_ewm',150)
}
</script>